package com.intelligentclass.entity;

import jakarta.persistence.Entity;
import jakarta.persistence.Id;

@Entity
public class Course {

    @Id
    private String cno;
    private String cname;

    public Course(){}
    public Course(String cno, String cname) {
        this.cno = cno;
        this.cname = cname;
    }

    public String getCno() {
        return cno;
    }
    public void setCno(String cno) {
        this.cno = cno;
    }
    public String getCname() {
        return cname;
    }
    public void setCname(String cname) {
        this.cname = cname;
    }

}
